

package com.loong.loong.hik.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 疾控告警
 *
 * @author cs
 * @date 2023-04-13 17:00:47
 */
@Data
@TableName("hik_cdc_alarm")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "疾控告警")
public class CdcAlarm extends Model<CdcAlarm> {

    private static final long serialVersionUID = 1L;

    /**
     * 告警id
     */
	@ExcelIgnore
	@TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="告警id")
    private Integer alarmId;

    /**
     * 设备id
     */
    @ApiModelProperty(value="设备id")
    private Integer did;

    /**
     * 设备名称
     */
    @ApiModelProperty(value="设备名称")
    private String devName;

    /**
     * 测点id
     */
    @ApiModelProperty(value="测点id")
    private String tid;

    /**
     * 测点名称
     */
    @ApiModelProperty(value="测点名称")
    private String tagName;

    /**
     * 告警类型 ("alarm"/告警产生"recover"/告警恢复)
     */
    @ApiModelProperty(value="告警类型 (\"alarm\"/告警产生\"recover\"/告警恢复)")
    private String type;

    /**
     * 告警内容
     */
    @ApiModelProperty(value="告警内容")
    private LocalDateTime alarmText;

    /**
     * 推送时间
     */
    @ApiModelProperty(value="推送时间")
    private String timeStamp;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

    /**
     * 操作人
     */
    @ApiModelProperty(value="操作人")
    private String updateBy;

    /**
     * 0 正常 1或者其他删除
     */
	@ApiModelProperty(value="0 正常 1或者其他删除")
	@ExcelIgnore
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private String delFlag;
	@ExcelIgnore
	@TableField(exist = false )
	private String likeName;
	@TableField(exist = false )
	private String startTime;
	@TableField(exist = false )
	private String endTime;

}
